﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StaffManageSelect.aspx.cs"
    Inherits="MedicareNoteManagerWeb.Web.StaffManageSelect" %>

<%@ Register Assembly="Comm" Namespace="Comm" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Css/TableStyle.css" rel="stylesheet" type="text/css" />
    <link href="../lib/ligerUI/skins/Gray/css/all.css" rel="stylesheet" />
    <link href="../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <script src="../lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/core/base.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
    <style type="text/css">
        .style1
        {
            width: 967px;
            text-align: right;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $("#FindDropArea").ligerComboBox();
        });

        $(function () {
            $("#DropArea").ligerComboBox();
        });

        var win1;
        function f_open() {
            if (win1) win1.show();
            else win1 = $.ligerDialog.open({ height: 600, url: 'StaffManageAdd.aspx', width: 800, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <center>
        <div style="width:96%; margin-top:3%" class="liger-form">
            <div>
                <table style="width: 100%; margin-left: 5px" width="480px">
                    <tr>
                        <td colspan="3">
                        
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            保险名称：
                            <asp:TextBox ID="txt_FindUser" CssClass="l-text" runat="server"></asp:TextBox>
                        </td>
                        <td align="right" style="width:100px">
                            <asp:DropDownList ID="FindDropArea" CssClass="l-checkbox" runat="server" Height="17px">
                            </asp:DropDownList>
                        </td>
                        <td align="right" style="width:60px">
                            <asp:Button ID="Button1" runat="server" CssClass="l-button" Text="查询" Width="55px"
                                OnClick="Button1_Click" />
                            <asp:Label ID="lbl_Message" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2" colspan="3" style="padding-top:1%">
                            <asp:GridView ID="Grd_User" runat="server" CssClass="l-grid" AutoGenerateColumns="False"
                                OnRowDeleting="Grd_User_RowDeleting" DataKeyNames="safeID" OnRowCancelingEdit="Grd_User_RowCancelingEdit"
                                OnRowEditing="Grd_User_RowEditing" OnRowDataBound="Grd_User_RowDataBound" OnRowUpdating="Grd_User_RowUpdating"
                                AllowSorting="True" OnPageIndexChanging="Grd_User_PageIndexChanging" AllowPaging="True"
                                Width="100%" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" 
                                BorderWidth="1px" CellPadding="3">
                                <EmptyDataTemplate>
                                    <div style="background-color: #FFFFD6; color: #ff0000; text-align: center; font-size: 18px">
                                        暂时没有数据!
                                    </div>
                                </EmptyDataTemplate>
                                <AlternatingRowStyle CssClass="l-grid-row" />
                                <Columns>
                                    <asp:TemplateField HeaderText="个人账号">
                                        <ControlStyle CssClass="l-grid-row" />
                                        <ItemStyle Width="100px" />
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbpersonAccountNum" Text='<%# Eval("personAccountNum") %>'></asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtpersonAccountNum" runat="server" Text='<%# Bind("personAccountNum") %>'
                                                Width="250px"></asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="保险名称">
                                        <ControlStyle CssClass="l-grid" />
                                        <ItemStyle Width="100px" />
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lb" Text='<%# Eval("safeName") %>'></asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtsafeName" runat="server" Text='<%# Bind("safeName") %>' Width="120px"></asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="人保卡号">
                                        <ControlStyle CssClass="l-grid-row" />
                                        <ItemStyle Width="100px" />
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbsafeCode" Text='<%# Eval("safeCode") %>'></asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtsafeCode" runat="server" Text='<%# Bind("safeCode") %>' Width="250px"></asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="身份证号">
                                        <ControlStyle CssClass="l-grid-row" />
                                        <ItemStyle Width="100px" />
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbIDNumber" Text='<%# Eval("IDNumber") %>'></asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtIDNumber" runat="server" Text='<%# Bind("IDNumber") %>' Width="250px"></asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="状态">
                                        <ControlStyle CssClass="l-grid-row" />
                                        <ItemStyle Width="50px" />
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbsafeState" Text='<%# Eval("safeState") %>'></asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtsafeState" runat="server" Text='<%# Bind("safeState") %>' Width="250px"></asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField ItemStyle-Width="30px">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="linkCode" runat="server" CommandName="Select" CommandArgument='<%#  Eval("safeID").ToString().Trim() %>'
                                                OnClick="GetCode"> 选 择</asp:LinkButton>
                                        </ItemTemplate>

                                <ItemStyle Width="30px" HorizontalAlign="Center"></ItemStyle>
                                    </asp:TemplateField>
                                </Columns>
                                <FooterStyle BackColor="White" ForeColor="#000066" />
                                <HeaderStyle CssClass="l-grid-row" BackColor="#006699" Font-Bold="True" 
                                    ForeColor="White" />
                                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="right" />
                                <PagerTemplate>
                                    当前第:
                                    <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                                    页/共:
                                    <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                                    页
                                    <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                                        Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                                    <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                                        CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
                                    <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                                        Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                                    <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                                        Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                                    转到第
                                    <asp:TextBox ID="txtNewPageIndex" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' />页
                                    <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-2"
                                        CommandName="Page" Text="GO" />
                                </PagerTemplate>
                                <RowStyle CssClass="l-grid-row" ForeColor="#000066" />
                                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                                <SortedAscendingHeaderStyle BackColor="#007DBB" />
                                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                                <SortedDescendingHeaderStyle BackColor="#00547E" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="3">
                            <asp:Button ID="Button2" runat="server" Text="确定" OnClick="btn_OK" class="l-button" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </center>
    </form>
</body>
</html>
